<?php  

require_once("../include/conn.php");
if(!empty($_REQUEST["id"])){
$id=$_REQUEST["id"];
$sql_up="select * from $tb_aq  where id = $id ";
$cn_up=mysql_db_query($db_name,$sql_up);

$row_up = mysql_fetch_row($cn_up); 

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<link href="Admin_Style.css" rel="stylesheet" type="text/css">
</head>

<body>
<form action="anquan_ok.php?id=<?php echo $id; ?>" method="post" enctype="multipart/form-data" name="form1" onSubmit="return checked();" >
  <table width="100%"  border="0" cellpadding="0" cellspacing="8" class="tdbg">
    <tr>
      <th colspan="2" class="topbg">修改信息</th>
    </tr>
    <tr>
      <td width="119" align="right">题目：</td>
      <td width="846"><input name="title" type="text" id="title" value="<?php echo $row_up[1]; ?>"></td>
    </tr>
    <tr>
      <td align="right">天数：</td>
      <td><input name="days" type="text" id="days" value="<?php echo $row_up[2]; ?>" ></td>
    </tr>
    <tr>
      <td align="right">显示否：</td>
      <td><input name="isshow" type="radio"  value="1" <?php if($row_up[4]==1) echo " checked "; ?>>显示<input name="isshow" type="radio"  value="0" <?php if($row_up[4]==0) echo " checked "; ?>>不显示</td>
    </tr>
    <tr>
      <td align="right">设置日期：</td>
      <td><script src="../js/Calendar.js" type="text/javascript" language="javascript"></script>

        <input name="tdate" type="text" id="tdate"  onclick="SelectDate(this)" size="16" readonly="readonly"  value="<?php echo $row_up[3]; ?>">
	  </td>
    </tr>
    <tr>
      <td align="right">&nbsp;</td>
      <td><input type="submit" name="Submit" value="提交">
        <input name="action" type="hidden" id="action" value="update">
      <input type="reset" name="Submit" value="重置"></td>
    </tr>
  </table>
</form>
</body>
</html>
<?php }
else{


?>
<meta http-equiv="refresh" content="0;URL=admin_index.php">
<?php }?>